package com.zzq.controller;

import com.zzq.domain.search.CouponSearchParamet;
import com.zzq.result.SmileResult;
import com.zzq.service.ClientCouponService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/client/coupon")
@RestController
@Api(value = "客户端优惠券控制接口",tags = {"客户端优惠券控制接口"})
public class ClientCouponController {

    @Autowired
    ClientCouponService couponService;

    @PostMapping("/list")
    @ApiOperation("优惠券获取列表")
    public SmileResult getCouponDTOList(@RequestBody CouponSearchParamet searchParamet){
      return   couponService.getcouponDTOList(searchParamet);
    }

}
